<div class="layui-form mask-layer" id="add_block">
    <div class="layui-form-item">
        <label class="layui-form-label">名称:</label>
        <div class="layui-input-block">
            <input type="text" class="field layui-input" id="add_block_label" value="{{d.m.get('label', '')}}">
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">类型:</label>
        <div class="layui-input-block">
            <select id="add_block_type">
                {{# for(let i in d.types) { }}
					{{# let val = d.types[i] }}
                    {{# if(val == BlockModel.TYPE.GROUP) continue; }}
                    <option value="{{val}}" {{# if(d.m.get('type', '') == val) { }} selected {{# } }} >{{BlockModel.typeText(val)}}</option>
                {{# } }}
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">内容:</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="" id="add_block_content" cols="30" rows="10">{{d.m.get('value', '')}}</textarea>
        </div>
    </div>
	<div class="layui-form-item layui-form-text">
		<label class="layui-form-label">备注:</label>
		<div class="layui-input-block">
			<input type="text" class="field layui-input" id="add_block_comment" value="{{d.m.get('comment', '')}}">
		</div>
	</div>
	
</div>

<script>layui.form.render('select')</script>

